package com.study.myThreadLocal;

/**
 * @description:
 * @author: 汤凌宇
 * @time: 2021/6/24 22:11
 */
public class ContextHolder {
    private static ThreadLocal<String> localThreadCache = new ThreadLocal<>();

    public static void set(String cacheValue) {
        localThreadCache.set(cacheValue);
    }

    public static String get() {
        return localThreadCache.get();
    }

    public static void remove() {
        localThreadCache.remove();
    }
}
